package com.spring.test.controller;

import com.spring.annotation.Controller;
import com.spring.annotation.GetMapping;
import com.spring.annotation.PostMapping;

import java.util.HashMap;
import java.util.Map;

@Controller("index")
public class IndexController {

    @GetMapping("getIndex")
    public String index(){
        System.out.println("请求已到达，返回数据！！");
        return "";
    }

    @PostMapping("getImage")
    public Map<String,String> getImage(){
        System.out.println("请求已到达，返回数据！！");
        Map<String,String> map = new HashMap<String, String>(8);
        map.put("asdf","请求已到达");
        map.put("cssd","请求已到达");
        map.put("fa","请求已到达");
        map.put("asd","请求已到达");
        return map;
    }
}
